#ifndef __Scene_RenderOperation_h__
#define __Scene_RenderOperation_h__

#include "GfxDriver/PrimitiveType.h"

namespace Orca {

	class VertexInput;
	class GfxDriver;

	//--------------------------------------------------------------------------
	class RenderOperation {

	public:
		RenderOperation(
			VertexInput *vertInput, 
			PrimitiveType primType,
			bool indexed,
			uint32 start,
			uint32 cnt);

		~RenderOperation();

		void beginRender(GfxDriver *gfxDriver);

		void render(GfxDriver *gfxDriver);

		void endRender(GfxDriver *gfxDriver);

	private:
		VertexInput *mVertexInput;
		PrimitiveType mPrimType;
		bool mIndexed;
		uint32 mStart;
		uint32 mCnt;
		
	};
}

#endif	// __Scene_RenderOperation_h__